home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12648 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1014 b   |  26 lines

  1. Path: taco.cc.ncsu.edu!news
  2. From: dksmith@eos.ncsu.edu
  3. Newsgroups: comp.lang.c
  4. Subject: URGENT (for me) Linker Problem
  5. Date: 1 Apr 1996 23:59:30 GMT
  6. Organization: North Carolina State University
  7. Message-ID: <4jpql2$3k2@taco.cc.ncsu.edu>
  8. NNTP-Posting-Host: cc04du.unity.ncsu.edu
  9.  
  10. I am trying to write some C++ code that includes C functions from a C module.
  11. However, when I compile I get the following linker error:
  12. LINKER ERROR: Undefined symbol <symbol> in module <module>
  13. This problem persists even when I use the extern keyword to declare the 
  14. external C functions in my C++ code. I tried then wrapping them with 
  15. extern "C" in my declarations (in my C++ code) but that resulted in the
  16. following error:
  17. <function> was previously declared with the language "
  18.  
  19. Does anyone know what I can do to get rid of these errors?
  20. BTW, I have all the appropriate files in my project file.
  21. If anyone can help me, I would appreciate it if you could send the response
  22. to dksmith@eos.ncsu.edu. Thanks in advance.
  23.  
  24. -David Smith
  25.  
  26.